<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->
<title>&lt;libgen.h&gt;</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_000_007_341">&nbsp;</a>NAME</h4><blockquote>
libgen.h - definitions for pattern matching functions
</blockquote><h4><a name = "tag_000_007_342">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

#include &lt;libgen.h&gt;
</code>
</pre>
</blockquote><h4><a name = "tag_000_007_343">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>&lt;libgen.h&gt;</i>
header declares the following external variable:
<pre>
<code>
extern char* __loc1 (<b>LEGACY</b>)
</code>
</pre>
<p>
(Used by
<i><a href="regex.html">regex()</a></i>
to report pattern location.)
<p>
The following are declared as functions and may also be defined as macros.
Function prototypes must be provided for use with an ISO C
compiler.
<pre>
<code>
char  *<a href="basename.html">basename</a>(char *);
char  *<a href="dirname.html">dirname</a>(char *);
char  *<a href="regcmp.html">regcmp</a>(const char *, ...); <b>(LEGACY)</b>
char  *<a href="regex.html">regex</a>(const char *, const char *, ...); <b>(LEGACY)</b>
</code>
</pre>
</blockquote><h4><a name = "tag_000_007_344">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
The function prototypes for
<i><a href="regcmp.html">regcmp()</a></i>
and
<i><a href="regex.html">regex()</a></i>
are included in this header for historical reasons.
New applications should use the
<i><a href="regcomp.html">regcomp()</a></i>,
<i><a href="regexec.html">regexec()</a></i>,
<i><a href="regerror.html">regerror()</a></i>
and
<i><a href="regfree.html">regfree()</a></i>
functions, and the
<i><a href="regex.h.html">&lt;regex.h&gt;</a></i>
header, which provide full internationalised regular expression
functionality compatible with the ISO POSIX-2 standard, as described in the <b>XBD</b> specification, <a href="../xbd/re.html"><b>Regular Expressions</b>&nbsp;</a>.
</blockquote><h4><a name = "tag_000_007_345">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>
None.
</blockquote><h4><a name = "tag_000_007_346">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="basename.html">basename()</a></i>,
<i><a href="dirname.html">dirname()</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
